const mongoose = require("mongoose");
//  关注粉丝表	concern
module.exports = mongoose.model("concern", {

  // gztime	关注那一刻的数时间
  gztime: {
    type: String,

  },
  // type    1为关注2为粉丝
  type: {
    type: String,
  },

  user_id: {
    type: mongoose.SchemaTypes.ObjectId,
    ref: 'user',
  },
  // user_idb    别人的user_id   需传参
  user_idb: {
    type: mongoose.SchemaTypes.ObjectId,
    ref: 'user',
  },

});